package cn.signalpha.modules.shop.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 数据传输对象实体类
 *
 * @author signalpha
 */
@Data
public class SellerAccountDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Long id;
	@NotBlank
    @ApiModelProperty(value = "名称")
    private String name;
	@NotBlank
    @ApiModelProperty(value = "电话")
    private String mobile;
	@NotBlank
    @ApiModelProperty(value = "账号")
    private String account;
	@NotBlank
    @ApiModelProperty(value = "密码")
    private String password;

	@ApiModelProperty(value = "角色id")
	private String roleId;

	@ApiModelProperty(value = "更新时间", hidden = true)
	private Date updateTime;

	@Data
	public static class UpdateDTO implements Serializable {
		private static final long serialVersionUID = 1L;
		@ApiModelProperty(value = "简介")
		private String brief;
	}

}
